﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PropertyList.aspx.cs" Inherits="ServicesSheet_PropertyList" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" DataMember="View_Services_Property">
        </InfoLight:WebDataSource>
        <InfoLight:WebDataSource ID="wdsState" runat="server" SelectAlias="Usasdb" SelectCommand="select &#13;&#10;Sys_FlowFlag.FlowFlag,&#13;&#10;Sys_FlowFlag.FlowFlagName &#13;&#10;from &#13;&#10;Sys_FlowFlag">
        </InfoLight:WebDataSource>
        <infolight:webnavigator id="WebNavigator1" runat="server" bindingobject="wgvMaster"
        width="100%" height="22px" statusstrip="WebStatusStrip1" showdatastyle="GridStyle"
        oncommand="WebNavigator1_Command" cssclass="NavigatorBar" ctlheight="25">
        <navcontrols>
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" />
               
                <InfoLight:ControlItem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/AddSheet2.gif" imageurl="../Image/UIPics/AddSheet.gif"
                mouseoverimageurl="../Image/UIPics/AddSheet2.gif" size="80">
            </InfoLight:ControlItem>
             <InfoLight:ControlItem ControlName="ClientQuery" ControlText="查看流程图" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/querySheet.gif" MouseOverImageUrl="../image/uipics/querySheet2.gif"
                    Size="80" />
            </navcontrols>
        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
        <queryfields>
                <InfoLight:WebQueryField Caption="员工编号" Condition="=" DefaultValue="" FieldName="EmpId"
                    Mode="RefVal" RefVal="QueryEmp" />
                <InfoLight:WebQueryField Caption="工作流" Condition="=" DefaultValue="" 
                    FieldName="FlowFlag" Mode="ComboBox" RefVal="QueryFlowFlag" />
            </queryfields>
    </infolight:webnavigator>
      <table cellpadding="0" cellspacing="5" class="TbSearch">
            <tr>
                <td style="width: 59px">
                    <asp:Label ID="Label2" runat="server" Text="部门名称：" Width="69px"></asp:Label></td>
                <td style="width: 100px">
                    <uc1:DepartmentDList ID="DepartmentDList1" runat="server" />
                </td>
                <td style="width: 64px">
                    <asp:Label ID="Label1" runat="server" Text="流程标志:" Width="65px"></asp:Label></td>
                <td style="width: 100px">
                    <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="True"
                        DataSourceID="wdsState" DataTextField="FlowFlagName" DataValueField="FlowFlag" DriverObject=""
                        Filter="" FilterObject="" OnlyShowSelectText="False" Width="126px" AppendDataBoundItems="True">
                    </InfoLight:WebDropDownList></td>
                <td style="width: 68px">
                    <asp:Label ID="Label3" runat="server" Text="申请日期：" Width="64px"></asp:Label></td>
                <td style="width: 100px">
                    <uc2:DSelYearMonth ID="DSelYearMonth1" runat="server" />
                </td>
                <td style="width: 100px">
                    
                    <span class="roundbtn">
                    <asp:LinkButton ID="btnSerch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSerch_Click"
                      ></asp:LinkButton>
                </span>
                   </td>
            </tr>
        </table>
        
         <InfoLight:webgridview id="wgvMaster" runat="server"
            cellpadding="5" datasourceid="Master" forecolor="#333333" width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif" 
        ApplyIconUrl="../Image/UIPics/Apply.gif" 
        CancelIconUrl="../Image/UIPics/Cancel.gif" 
        MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" 
        MouseOverAddIconUrl="../Image/UIPics/Add2.gif" 
        MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" 
        MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif" 
        MouseOverOKIconUrl="../Image/UIPics/OK2.gif" 
        MouseOverQueryIconUrl="../Image/UIPics/Query2.gif" 
        OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" 
        HeaderStyleWrap="False" BackColor="White" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px" CreateInnerNavigator="False" 
        ShowFooter="True" TotalActive="True" TotalCaption="总计：" PageSize="15" 
        onrowcommand="wgvMaster_RowCommand" onrowdatabound="wgvMaster_RowDataBound">
            <PagerSettings Mode="NumericFirstLast" />
<FooterStyle ForeColor="Red" Font-Bold="True"></FooterStyle>
            <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
            <Columns>
                <asp:TemplateField>
                    <itemtemplate>
<center>
<img alt="查看明细" src="../Image/UIPics/(10,07).png" style="cursor:pointer;" onclick='window.open("ViewProperty.aspx?rpId=<%#Eval("rpId") %>","","top=200,left=200,height=470,width=600,status=no,toolbar=no,menubar=no,location=no")' /></center>
</itemtemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="删除" >
                    <ItemTemplate>
                    <asp:ImageButton ID="del" runat="server" ImageUrl="../image/main/Error2.gif" ></asp:ImageButton> 
                    </ItemTemplate>
                     <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="维修编码" SortExpression="rpId">
                    <ItemTemplate>
                    <a href='Property.aspx?FLOWFILENAME=FL\PropertyRepair&NAVMODE=Modify&FLNAVMODE=Submit&id=<%# Eval("rpId") %>&flowflag=<%# Eval("FlowFlag") %>&EmpId=<%# Eval("empId") %>'><%# Eval("rpId")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                              
                <asp:BoundField DataField="rpName" HeaderText="维修名称" SortExpression="rpName" />
                <asp:BoundField DataField="departmentname" HeaderText="部门名称" SortExpression="departmentname" />
                <asp:BoundField DataField="EmpName" HeaderText="员工名称" SortExpression="EmpName" />
                <asp:BoundField DataField="rpDate" HeaderText="申请日期" SortExpression="rpDate" DataFormatString="{0:d}" />
                <asp:BoundField DataField="rpCharge" HeaderText="维修费用" SortExpression="rpCharge" />
                <asp:BoundField DataField="FlowFlagName" HeaderText="流程标志" SortExpression="FlowFlagName" />
</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <TotalColumns>
                <InfoLight:GridViewTotalItem FieldName="rpCharge" />
            </TotalColumns>
</InfoLight:webgridview>
</asp:Content>

